import { View } from '@tarojs/components';
import { AtCountdown } from 'taro-ui';
import './index.scss';

export default function ({ seconds, onTimeUp = () => {} }) {
  return (
    <View className="miaosha-time">
      <AtCountdown
        format={{ hours: ':', minutes: ':', seconds: '' }}
        seconds={seconds}
        onTimeUp={onTimeUp}
      />
    </View>
  );
}
